# 登录URL:/api/sys/login
from config import URL
import requests
class LoginApi(object):
    def __init__(self):
        self.login_url = URL + "/api/sys/login"
    def login(self,body):
        return requests.post(self.login_url,json=body)
    def get_au_headers(self,body):
        response = self.login(body)
        json_data = response.json()
        print(f'登录的响应内容为{json_data}')
        au_headers = {
            "Authorization":json_data['data']
        }
        return au_headers